package pratap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.DynaValidatorForm;

public class UpdateContactAction extends Action{

public ActionForward execute(ActionMapping mapping, ActionForm form,
		HttpServletRequest request, HttpServletResponse response)
		throws Exception {
System.out.println("UpdateContactAction()");
String result="UpdateContactSucess";
DynaValidatorForm dvf=(DynaValidatorForm)form;
String fn=dvf.get("fname").toString();
String ln=dvf.get("lname").toString();
String em=dvf.get("email").toString();
String ph=dvf.get("phone").toString();

System.out.println(fn);
System.out.println(ln);
System.out.println(em);
System.out.println(ph);
	return mapping.findForward(result);
}
}
